﻿using System;
using Microsoft.Xna.Framework;

namespace Terraria.UI
{
	// Token: 0x020000DB RID: 219
	public struct CalculatedStyle
	{
		// Token: 0x06000B1B RID: 2843 RVA: 0x0000BC93 File Offset: 0x00009E93
		public CalculatedStyle(float x, float y, float width, float height)
		{
			this.X = x;
			this.Y = y;
			this.Width = width;
			this.Height = height;
		}

		// Token: 0x06000B1C RID: 2844 RVA: 0x0000BCB2 File Offset: 0x00009EB2
		public Rectangle ToRectangle()
		{
			return new Rectangle((int)this.X, (int)this.Y, (int)this.Width, (int)this.Height);
		}

		// Token: 0x06000B1D RID: 2845 RVA: 0x0000BCD5 File Offset: 0x00009ED5
		public Vector2 Position()
		{
			return new Vector2(this.X, this.Y);
		}

		// Token: 0x06000B1E RID: 2846 RVA: 0x0000BCE8 File Offset: 0x00009EE8
		public Vector2 Center()
		{
			return new Vector2(this.X + this.Width * 0.5f, this.Y + this.Height * 0.5f);
		}

		// Token: 0x04000F62 RID: 3938
		public float X;

		// Token: 0x04000F63 RID: 3939
		public float Y;

		// Token: 0x04000F64 RID: 3940
		public float Width;

		// Token: 0x04000F65 RID: 3941
		public float Height;
	}
}
